package com.ruoyi.finance.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 每月逾期对象 t_commission_overdue
 *
 * @author admin
 * @date 2023-10-17
 */
public class CommissionOverdue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 逾期年月 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "逾期年月", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overdueDate;

    /** 业务员 */
    @Excel(name = "业务员")
    private String salesName;

    /** PI单号 */
    @Excel(name = "PI号")
    private String piNo;

    /** 客户代码 */
    @Excel(name = "客户编码")
    private String customerNo;

    /** 出货/签收日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出货/签收日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shippingDate;

    /** 账期(天) */
    @Excel(name = "账期（天）")
    private Long accountDay;

    /** 账期到期日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "账期到期日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date accountDate;

    /** 实际回款日期/水单上日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际回款日期/水单上日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentDate;

    /** 回款逾期时间(天) */
    @Excel(name = "回款逾期时间(天)")
    private Long overdueDay;

    /** 占比% */
    @Excel(name = "占比")
    private BigDecimal proportion;

    /** 确认状态 */
    private Integer confirmStatus;

    /** 确认时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date confirmTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPiNo(String piNo)
    {
        this.piNo = piNo;
    }

    public String getPiNo()
    {
        return piNo;
    }
    public void setSalesName(String salesName)
    {
        this.salesName = salesName;
    }

    public String getSalesName()
    {
        return salesName;
    }
    public void setCustomerNo(String customerNo)
    {
        this.customerNo = customerNo;
    }

    public String getCustomerNo()
    {
        return customerNo;
    }
    public void setOverdueDate(Date overdueDate)
    {
        this.overdueDate = overdueDate;
    }

    public Date getOverdueDate()
    {
        return overdueDate;
    }
    public void setShippingDate(Date shippingDate)
    {
        this.shippingDate = shippingDate;
    }

    public Date getShippingDate()
    {
        return shippingDate;
    }
    public void setAccountDay(Long accountDay)
    {
        this.accountDay = accountDay;
    }

    public Long getAccountDay()
    {
        return accountDay;
    }
    public void setAccountDate(Date accountDate)
    {
        this.accountDate = accountDate;
    }

    public Date getAccountDate()
    {
        return accountDate;
    }
    public void setPaymentDate(Date paymentDate)
    {
        this.paymentDate = paymentDate;
    }

    public Date getPaymentDate()
    {
        return paymentDate;
    }
    public void setOverdueDay(Long overdueDay)
    {
        this.overdueDay = overdueDay;
    }

    public Long getOverdueDay()
    {
        return overdueDay;
    }
    public void setProportion(BigDecimal proportion)
    {
        this.proportion = proportion;
    }

    public BigDecimal getProportion()
    {
        return proportion;
    }
    public void setConfirmStatus(Integer confirmStatus)
    {
        this.confirmStatus = confirmStatus;
    }

    public Integer getConfirmStatus()
    {
        return confirmStatus;
    }
    public void setConfirmTime(Date confirmTime)
    {
        this.confirmTime = confirmTime;
    }

    public Date getConfirmTime()
    {
        return confirmTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("piNo", getPiNo())
            .append("salesName", getSalesName())
            .append("customerNo", getCustomerNo())
            .append("overdueDate", getOverdueDate())
            .append("shippingDate", getShippingDate())
            .append("accountDay", getAccountDay())
            .append("accountDate", getAccountDate())
            .append("paymentDate", getPaymentDate())
            .append("overdueDay", getOverdueDay())
            .append("proportion", getProportion())
            .append("confirmStatus", getConfirmStatus())
            .append("confirmTime", getConfirmTime())
            .toString();
    }
}
